package BeenChina.PM.Service.Impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
import BeenChina.PM.DAO.CaseInfoDao; 
import BeenChina.PM.Model.ModelCaseNumber; 
import BeenChina.PM.Service.CaseInfoService;

public class CaseInfoServiceImpl implements CaseInfoService{

	    private CaseInfoDao dao;

	    public CaseInfoDao getDao() {
	        return dao;
	    }

	    public void setDao(CaseInfoDao dao) {
	        this.dao = dao;
	    }
	    	   
		public List<ModelCaseNumber> selectCaseNumber(String dateFrom,String dateTo, String dateField) {
			try{
				 
				Map<String, String> params = new HashMap<String, String>();
				 
				params.put("dateFrom", dateFrom);
				params.put("dateTo", dateTo);
				params.put("dateField", dateField);

				return this.dao.selectCaseNumber( params);
			 } catch (Exception e) {  
	             e.printStackTrace();  
	             return null;
	         }  
			 
		}	    
}
